<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../base.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <section class="content-header">
        <h1>
            货运管理
            <small>新增出口报运单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
        </ol>
    </section>
    <section class="content">
        <div class="box-body">
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a href="#tab-form" data-toggle="tab">新增装箱单</a>
                    </li>
                </ul>
                <div class="tab-content">
                    <form id="editForm" action="/cargo/packingList/edit.do" method="post">
                        <input type="hidden" name="exportIds" value="${packingList.exportIds}">
                        <input type="hidden" name="shipmentPort" value="${packingList.shipmentPort}">
                        <input type="hidden" name="destinationPort" value="${packingList.destinationPort}">
                        <input type="hidden" name="consignee" value="${packingList.consignee}">
                        <div class="tab-pane active" id="tab-form">
                            <div class="row data-type">
                                <div class="col-md-2 title">报运合同号</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="报运合同号" name="exportNos"
                                           value="${packingList.exportNos}" readonly="readonly">
                                </div>

                                <div class="col-md-2 title">装箱时间</div>
                                <div class="col-md-4 data">
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="text" placeholder="装箱时间" class="form-control pull-right" name="packingTime"
                                               value="${packingList.packingTime}" id="datepicker1">
                                    </div>
                                    <script src="../../plugins/datepicker/bootstrap-datepicker.js"></script>
                                    <script src="../../plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
                                    <link rel="stylesheet" href="../../css/style.css">
                                    <script>
                                        $('#datepicker1').datepicker({
                                            autoclose: true,
                                            format: 'yyyy-mm-dd '
                                        });
                                    </script>
                                </div>
                                <div class="col-md-2 title">总体积</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="总体积" name="totalVolume"
                                           value="${packingList.totalVolume}" readonly="readonly">
                                </div>
                                <div class="col-md-2 title">总净重</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="总净重" name="netWeights"
                                           value="${packingList.netWeights}" readonly="readonly">
                                </div>
                                <div class="col-md-2 title">总毛重</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="总毛重" name="grossWeights"
                                           value="${packingList.grossWeights}" readonly="readonly">
                                </div>
                                <div class="col-md-2 title">唛头</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="唛头" name="marks"
                                           value="${packingList.marks}" >
                                </div>
                                <div class="col-md-2 title">描述</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="描述" name="description"
                                           value="${packingList.description}">
                                </div>
                                <div class="col-md-2 title">装箱费用</div>
                                <div class="col-md-4 data">
                                    <input type="text" class="form-control" placeholder="装箱费用" name="packingMoney"
                                           value="${packingList.packingMoney}" readonly="readonly">
                                </div>
                                <div class="col-md-2 title"></div>
                                <div class="col-md-10 data text-center">
                                    <button type="button" onclick='document.getElementById("editForm").submit()'
                                            class="btn bg-maroon">保存
                                    </button>
                                    <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

    </section>
</div>
</body>

</html>